const net = require('net');

const sever = net.createServer(socket => {
	socket.on('end', () => {
		console.log('client disconnected')
	})
	
	socket.on('data', data => {
		console.log(data.toString())
		socket.pipe(socket)
	});
})
sever.listen('9898', () => {
	console.log('listen on 9898')
})
